//
//  ZHLEETitleButton.swift
//  ZHLEEBlog_swift_pro
//
//  Created by ZHLEEBlander on 15/10/12.
//  Copyright © 2015年 ZHLEEBlander. All rights reserved.
//

import UIKit

class ZHLEETitleButton: UIButton {
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        titleLabel?.x = 0
        imageView?.x = CGRectGetMaxX(titleLabel?.frame ?? CGRectZero) + 5
    }
    
    override func sizeToFit() {
        super.sizeToFit()
        
        width = width + 5
    }
}
